package com.shopping;

/**
 * @author wdx
 * @desc 商品各种状态
 *
 * */
public enum GoodsStatus {
    WIGHT_IS_NEGATIVE("weight can't be less than zero",1),
    GOODS_NOT_EXISTS("goods is not exists",2),
    ;

    String desc;

    Integer code;

    GoodsStatus(String desc,Integer code) {
        this.desc = desc;
        this.code=code;
    }

    public String getDesc() {
        return desc;
    }

}
